package jmu.cze.mapper;

import jmu.cze.pojo.AircraftModel;
import org.apache.ibatis.annotations.MapKey;
import org.springframework.stereotype.Repository;

import java.util.Map;

@Repository
public interface AircraftModelMapper {
    int deleteByID(int modelID);

    int insert(AircraftModel aircraftModel);

    AircraftModel selectByID(int modelID);

    int update(AircraftModel aircraftModel);

    @MapKey("modelID")
    Map<Integer, AircraftModel> selectAll();
}